package com.xiaobo.client;

import android.app.ActivityGroup;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class SysTab extends ActivityGroup {

	 public static TabHost tab_host;
	    @Override
	    protected void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
			Window win = getWindow();
			win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
					WindowManager.LayoutParams.FLAG_FULLSCREEN);
			requestWindowFeature(Window.FEATURE_NO_TITLE);
	        setContentView(R.layout.tab);

	        tab_host = (TabHost) findViewById(R.id.edit_item_tab_host);
	        tab_host.setup(this.getLocalActivityManager());

	        TabSpec ts1 = tab_host.newTabSpec("TAB_WEATHER"); 
	        ts1.setIndicator("查询选项"); 
	        ts1.setContent(new Intent(this, SysTab_Cx.class)); 
	        tab_host.addTab(ts1); 

	        TabSpec ts2 = tab_host.newTabSpec("TAB_MAIL"); 
	        ts2.setIndicator("系统参数"); 
	        ts2.setContent(new Intent(this, SysTab_xx.class)); 
	        tab_host.addTab(ts2); 

	        tab_host.setCurrentTab(0);
	    }
	}



